package com.bright.ghj.overt.pojo.dto;

import com.bright.ghj.user.pojo.dto.CommonUserDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * A DTO for the {@link com.bright.ghj.overt.pojo.po.primary.User} entity
 */
@Data
public class UserDTO extends CommonUserDTO implements Serializable {
    private final Integer id;
    private final String username;
    private String password;
    private Integer type;
    private String distNo;
    private String distName;
    private Integer pMain;
    private String pMainDesc;
    private String ztId;
    private Integer module;
    private Boolean isZt;
    private String accSets;
    private Boolean isCwgk;
    private Boolean isHeadFind;
    private Boolean isManager;
    private Boolean isTdyh;
    private String linkZt;
    private Boolean isSz;
    private Boolean myPass;
    private Boolean isQuery;
    private String phone;
    private String phoneType;
    private Integer cwgkPmain;
    private String cwgkPmainDesc;
//    private final String cwgkDistNo;
//    private final String cwgkDistName;
//    private final String cwgkZtId;

    // 是否有进入后台管理的权限
    private Boolean isPermitAdmin;

    // 适配多个地区
    private String[] distNoList;
    private String[] ztIdList;

    // 权限
    private List<RightRoleDTO> rightRoles;
}